<template>
	<view>
		<view class="box">
			<view class="box_nav" @click="see(1)">
				<image src="https://img.wilmer.com.cn/admin/2024/4-3/Vector.png" mode=""></image>
				<text>视频教你{{type}}</text>
			</view>
			<view class="box_nav" style="margin-top: 40rpx;" @click="see(2)">
				<image src="https://img.wilmer.com.cn/admin/2024/4-3/Group%20328.png" mode=""></image>
				<text>一对一教你{{type}}</text>
			</view>
		</view>
		<image style="width: 100%;height: 222rpx;position: fixed;left: 0;bottom: 0;"
			src="https://img.wilmer.com.cn/admin/2024/4-3/Vector%201.png" mode=""></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: ""
			}
		},
		onLoad(option) {
			this.type = option.type
			// 修改头部标题
			uni.setNavigationBarTitle({
				title: this.type
			});
		},
		methods: {
			see(val) { // 1 视频教学 2 一对一
				if (val == 1) {
					this.$tab.navigateTo(`/pages/business/VideoList?type=${this.type}`)
				} else {
					this.$tab.navigateTo(`/pages/business/OneonOne?type=${this.type}`)
				}
			}
		}
	}
</script>

<style lang="scss">
	page {
		width: 100%;
		height: auto;
		background: #F9FCFF;
		overflow-x: hidden;
	}
</style>

<style scoped lang="scss">
	.box {
		width: 686rpx;
		margin: 400rpx auto 0;
		display: flex;
		flex-direction: column;

		.box_nav {
			width: 686rpx;
			height: 120rpx;
			border-radius: 60rpx;
			border: 4rpx solid #A6D6FF;
			display: flex;
			align-items: center;
			justify-content: center;

			image {
				width: 52rpx;
				height: 44rpx;
				margin-right: 18rpx;
			}

			text {
				font-family: PingFang SC;
				font-size: 48rpx;
				font-weight: 500;
				color: #319AF5;
			}
		}
	}
</style>